package codeblock;

/**
 * @description:
 * @Author yyp
 * @time 2022/01/06
 */

class test{
    String name;
    int age;
    {
        name = "yyp";
    }

    public test(int age) {
        this.age = age;
    }
}
public class Movie {
    public static void main(String[] args) {
        test t = new test(22);
        System.out.println("name:"+t.name+" age:"+t.age);
    }
}
